﻿Imports System.Collections.ObjectModel
Imports System.ComponentModel.DataAnnotations

Public Class PatientRegistration
    Public Property PatientId As Long
    <Required()> _
    Public Property FirstName As String = String.Empty

    Public Property LastName As String = String.Empty

    Public Property SurName As String = String.Empty

    Public Property Gender As Boolean

    Public Property Address As String = String.Empty

    Public Property TelephoneNo As String = String.Empty

    Public Property MobileNo As String = String.Empty

    Public Property ContactPerson As String = String.Empty

    Public Property Email As String = String.Empty

    Public Property Remarks As String = String.Empty

    Public Property PatientType As Integer
    <Required()> _
    Public Property RegistrationDate As Date

    Public Property RefByDoc As String = String.Empty

    Public Property DOB As Date?
    <Required()> _
    Public Property Age As Double

    Public Property Occupation As String = String.Empty

    Public Property AssignedDr As Integer? = Nothing

    Public Property MaritalStatus As Integer? = Nothing

    Public Property CreatedBy As Integer

    Public Property CreatedDateTime As Date

    Public Property language() As System.Nullable(Of Integer) = Nothing

    Public Property confidential() As System.Nullable(Of Integer)

    Public Property religion() As System.Nullable(Of Integer) = Nothing

    Public Property bloodGroup() As System.Nullable(Of Integer) = Nothing

    Public Property siblingBrother() As System.Nullable(Of Byte) = 0

    Public Property siblingSister() As System.Nullable(Of Byte) = 0

    Public Property childBoys() As System.Nullable(Of Byte) = 0

    Public Property childGirl() As System.Nullable(Of Byte) = 0

    Public Property diet() As System.Nullable(Of Integer) = Nothing

    Public Property image() As Byte()

    Dim _patientGuardians As New ObservableCollection(Of PatientGuardian)
    Public ReadOnly Property PatientGuardians As ObservableCollection(Of PatientGuardian)
        Get
            Return _patientGuardians
        End Get
    End Property
End Class

